package tset;

import uesr.Business;
import uesr.Customer;
import uesr.User;

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        User user = new Business();

        menu(user);

    }
    public static void menu(User user) {
        System.out.println("欢迎来到 吃了吗 外卖平台");
        while (true) {
            user.user_operations[2].work(user);
            Scanner scanner = new Scanner(System.in);
            System.out.println("选择进行的操作>>");
            int choice = scanner.nextInt();
            if (choice == 3) {
                user.goods_menu();
            } else {
                user.user_operations[choice-1].work(user);

            }
        }
    }
}
